<html xsl:version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      lang="ru">
  <head>
    <title>
      <xsl:value-of select="root/item/@name"/>
    </title>
  </head>
  <body>
    <table border="1" cellspacing="0" cellpading="5">
    <tr> <td valign="top">
    Описание: <xsl:value-of select="root/item/@description"/> <br/>
    Изображение:
    <p align="center">
      <img>
        <xsl:attribute name="src">
          ../../Images/Schemes/<xsl:value-of select="root/item/@image" />
        </xsl:attribute>
      </img>
    </p>
    </td> <td>
    <table border="1" cellspacing="0" cellpadding="5" width="120">
       <caption>Контакты</caption>
       <tr>
         <th>Имя</th>
         <th>Тип</th>
       </tr>
       <xsl:for-each select="root/item/pins/pin">
       <tr>
         <td> 
           <xsl:value-of select="@name" />
         </td>
         <td> 
           <xsl:choose>
             <xsl:when test="@type = 'In'" > Вход </xsl:when>
             <xsl:when test="@type = 'Out'" > Вывод </xsl:when>
             <xsl:otherwise>Не определён</xsl:otherwise>     
           </xsl:choose>        
         </td>
       </tr>
       </xsl:for-each>
    </table>
    </td> </tr> </table>
  </body>
</html>